package com.guomao.iodemos;

import java.io.File;
import java.io.IOException;

public class DemoE {

    public static void main(String[] args) throws IOException {
        File srcFile = new File("source.txt");
        File destFile = new File("dest.txt");


//        FileUtils.copyFile(srcFile,destFile);


//        FileUtils.moveFile(srcFile,new File("newsrc.txt"));


//        FileUtils.deleteQuietly(srcFile);
//        FileUtils.deleteQuietly(destFile);


//        FileUtils.writeStringToFile(srcFile, "abc", StandardCharsets.UTF_8);
//        FileUtils.writeStringToFile(srcFile, "一行白鹭上青天", "utf-8");


//        String s = FileUtils.readFileToString(srcFile, "UTF-8");
//        System.out.println(s);


//        String extension = FilenameUtils.getExtension(srcFile.getName());
//        System.out.println(extension);

//        String fullPath = FilenameUtils.getFullPath("D://QQ");
//        System.out.println(fullPath);


    }
}
